package com.school.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.school.dao.HljtDutyDao;
import com.school.entity.HljtDuty;
import com.school.entity.web.StudentOnDuty;
import com.school.service.HljtDutySerivce;
@Service
public class HljtDutySerivceImpl implements HljtDutySerivce {
	@Autowired
	private HljtDutyDao hljtDutyDao;

	@Override
	public HljtDuty findHljtDuty(Integer id) {
			return hljtDutyDao.findHljtDuty(id);
	}

	@Override
	public List<HljtDuty> findAll() {
			return hljtDutyDao.findAll();
	}

	@Override
	public Integer deleteDuty(Integer id) {
		return hljtDutyDao.deleteDuty(id);
	}

	@Override
	public Integer addDuty(HljtDuty hljtduty) {
		return hljtDutyDao.addDuty(hljtduty);
	}

	@Override
	public Integer updateDuty(HljtDuty hljtduty) {
		return hljtDutyDao.updateDuty(hljtduty);
	}

	@Override
	public HljtDuty selectDuty(Integer id) {
		return hljtDutyDao.selectDuty(id);
	}

	@Override
	public List<StudentOnDuty> selectStudentOnDutyall(Integer classid, Integer dutyid, String week) {
		// TODO Auto-generated method stub
		return hljtDutyDao.selectStudentOnDutyall(classid, dutyid, week);
	}



}
